import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/dashboard'
        },
        {
            path: '/',
            component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
                {
                    path: '/dashboard',
                    component: () => import(/* webpackChunkName: "dashboard" */ '../views/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },

                {
                    path: '/LoginLogList',
                    component: () => import('../views/LoginLogList.vue'),
                    meta: { title: '登录日志' }
                },
                {
                    path: '/DoLogList',
                    component: () => import('../views/DoLogList.vue'),
                    meta: { title: '操作日志' }
                },
                {
                    path: '/AuthList',
                    component: () => import('../views/AuthList.vue'),
                    meta: { title: '角色列表' }
                },
                {
                    path: '/UserList',
                    component: () => import('../views/UserList.vue'),
                    meta: { title: '员工列表' }
                },
                {
                    path: '/BannerList',
                    component: () => import('../views/BannerList.vue'),
                    meta: { title: '轮播图列表' }
                },
                {
                    path: '/NoticeList',
                    component: () => import('../views/NoticeList.vue'),
                    meta: { title: '公告列表' }
                },
                {
                    path: '/ConfigShop',
                    component: () => import('../views/ConfigShop.vue'),
                    meta: { title: '基础信息' }
                },
                {
                    path: '/Gjjs',
                    component: () => import('../views/Gjjs.vue'),
                    meta: { title: '公司介绍' }
                },
                {
                    path: '/Gsyj',
                    component: () => import('../views/Gsyj.vue'),
                    meta: { title: '公司愿景' }
                },
                {
                    path: '/gywm',
                    component: () => import('../views/gywm.vue'),
                    meta: { title: '关于我们' }
                },
                {
                    path: '/rylist',
                    component: () => import('../views/rylist.vue'),
                    meta: { title: '人员介绍' }
                },
                {
                    path: '/zzzslist',
                    component: () => import('../views/zzzslist.vue'),
                    meta: { title: '资质证书' }
                },
                {
                    path: '/gscplist',
                    component: () => import('../views/gscplist.vue'),
                    meta: { title: '公司产品' }
                },
                {
                    path: '/wjlist',
                    component: () => import('../views/WjList.vue'),
                    meta: { title: '问答列表' }
                },
                {
                    path: '/QdUserList',
                    component: () => import('../views/QdUserList.vue'),
                    meta: { title: '会员列表' }
                },
                {
                    path: '/QdUserLogin',
                    component: () => import('../views/QdUserLogin.vue'),
                    meta: { title: '会员登录' }
                },
                
                
                

            ]
        },
        {
            path: '/login',
            component: () => import('../views/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '/404',
            component: () => import('../views/404.vue'),
            meta: { title: '404' }
        },
        {
            path: '/403',
            component: () => import(/* webpackChunkName: "403" */ '../views/403.vue'),
            meta: { title: '403' }
        },
        //权限列表
        {
            path: '*',
            redirect: '/404'
        }
    ]


});
